package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.CategoryMapper;
import com.hcb.micro.dto.Category;
import com.hcb.micro.service.ICategoryService;

@Service("CategoryService")
public class CategoryServiceImpl implements ICategoryService {

	@Autowired
	CategoryMapper categoryMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return categoryMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Category record) {
		return categoryMapper.insert(record);
	}

	@Override
	public int insertSelective(Category record) {
		return categoryMapper.insertSelective(record);
	}

	@Override
	public Category selectByPrimaryKey(Integer id) {
		return categoryMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Category record) {
		return categoryMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Category record) {
		return categoryMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Category> selectAllByPara(Map<String,Object> para) {
		return categoryMapper.selectAllByPara(para);
	}

}
